package com.quectel.core.module.grid.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author bob
 * @email bob.yu@quectel.com
 * @date 2023/02/03 15:45
 */
@Data
@Schema
public class GridPlanTaskDto implements Serializable {

    /**
     *
     */
    @Schema(description = "")
    private Long id;

    /**
     *
     */
    @Schema(description = "")
    private Long tenantId;

    /**
     * 小区id
     */
    @Schema(description = "小区id")
    private Long villageId;

    /**
     * 计划id
     */
    @Schema(description = "计划id")
    private Long planId;

    /**
     * 计划快照
     */
    @Schema(description = "计划快照")
    private String planSnapshot;

    /**
     * 网格id
     */
    @Schema(description = "网格id")
    private Long gridId;

    /**
     * 任务名称(日期+计划+时间段)
     */
    @Schema(description = "任务名称(日期+计划+时间段)")
    private String name;

    /**
     * 巡检人id
     */
    @Schema(description = "巡检人id")
    private Long execUserId;

    /**
     * 巡检人姓名
     */
    @Schema(description = "巡检人姓名")
    private String execUsername;

    /**
     * 任务日期2020-10-03
     */
    @Schema(description = "任务日期2020-10-03")
    private String date;

    /**
     * 日期时间段03:00-06:00
     */
    @Schema(description = "日期时间段03:00-06:00")
    private String period;

    /**
     * 可执行开始时间
     */
    @Schema(description = "可执行开始时间")
    private Date execStartTime;

    /**
     * 可执行结束时间
     */
    @Schema(description = "可执行结束时间")
    private Date execEndTime;

    @Schema(description = "0生成未执行 1执行中  2执行成功 3漏检")
    private Byte execStatus;

    @Schema(description = "巡查任务结果 0异常 1正常")
    private Byte status;

    @Schema(description = "巡检结果描述")
    private String detail;

    @Schema(description = "图片")
    private String snapshotImgs;

    @Schema(description = "事件编码")
    private String eventNo;

    @Schema(description = "是否推送1是0否")
    private Byte isPush;

    @Schema(description = "完成时间")
    private Date completeTime;

    @Schema(description = "创建时间")
    private Date createTime;

    /************非数据库字段 start ************/
    @Schema(description = "网格实体")
    private GridDto grid;

    @Schema(description = "网格事件")
    private GridEventRecordDto gridEventRecord;

    @Schema(description = "巡查对象项目名")
    private String patrolObj;

    @Schema(description = "是否可执行 0不可执行1可执行")
    private Byte executableState;
    /************非数据库字段 end **************/
}
